package com.example.micro.mysql.deadlock.service.impl;

import com.example.micro.mysql.deadlock.service.InjectionBService;
import com.example.micro.mysql.deadlock.service.InjectionCService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class InjectionBServiceImpl implements InjectionBService {

    @Resource
    private InjectionCService injectionCService;

    @Override
    @Async
    public void print() {
        System.out.println("this is B");
//        injectionCService.print();
    }
}
